package com.ant.user.customer.rest;

import com.ant.product.rpc.seckill.api.SeckillApi;
import com.ant.user.service.customer.PortalService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/customer/v1")
public class CustomerRestful {
    @Resource
    private PortalService portalService;

    @DubboReference
    private SeckillApi seckillApi;

    @RequestMapping("/test")
    public String test() {
        return seckillApi.test();
    }


}
